﻿using System.Web.UI;

namespace Al.UI.Controls
{
    public class RepeaterItem : Control, IDataItemContainer
    {
        private object _dataItem;
        private int _itemIndex;

        public RepeaterItem(int itemIndex)
        {
            this._itemIndex = itemIndex;
        }

        #region IDataItemContainer Members

        public object DataItem
        {
            get
            {
                return this._dataItem;
            }
            set
            {
                this._dataItem = value;
            }
        }

        public int DataItemIndex
        {
            get 
            {
                return this._itemIndex;    
            }
        }

        public int DisplayIndex
        {
            get 
            {
                return this._itemIndex;     
            }
        }

        #endregion
    }
}
